<?php echo $this->render('header.phtml'); ?>
<?php	
	if (isset($this->errors)){
		$errors = $this->errors;
		if (key_exists('message', $errors))$message = $errors['message'] ;
		if (key_exists('username', $errors)) $username = $errors['username'] ;
		if (key_exists('username_null', $errors)) $username_null = $errors['username_null'];
		if (key_exists('password_null', $errors)) $password_null = $errors['password_null'];
	}
?>
<script type="text/javascript">
	jQuery(document).ready(function() {
		jQuery('#username').focus();
	});
</script>
<div class="clr"></div>
<div id="box-content">
	<div id="box-left">
		<ul>
			<li><a href="#"><img src="<?php echo $this->baseUrl; ?>/public/images/frontend/Home.jpg"/>Trang chủ</a></li>
			<li><a href="#"><img src="<?php echo $this->baseUrl; ?>/public/images/frontend/reg.jpg"/>Đăng ký họp trực tuyến</a></li>
			<li><a href="#"><img src="<?php echo $this->baseUrl; ?>/public/images/frontend/reg.jpg"/>Dự họp trực tuyến</a></li>
			<li><a href="#"><img src="<?php echo $this->baseUrl; ?>/public/images/frontend/reg.jpg"/>Tài liệu đại hội</a></li>
			<li><a href="#"><img src="<?php echo $this->baseUrl; ?>/public/images/frontend/reg.jpg"/>Liên hệ</a></li>
		</ul>
	</div>
	<div id="box-right">
		<div id="login">
			<div style="margin-top: 50px; padding-left: 50px; padding-bottom: 50px;">
		        <form action="<?= $this->baseUrl ?>/<?= $this->contextPath ?>" method="post">
		        		<?php if (isset($message)){?>
		        		<div class="line">
							<p style="margin: 10px 0 10px 0; color: red">					
								<?php echo $message;?>
							</p>
						</div>
						<?php } ?>
						<?php if (isset($username_null)){ ?>
						<div class="line">
							<p style="margin: 10px 0 10px 0; color: red">
								<?php echo $username_null; ?>
							</p>	
						</div>	
						<?php } ?>
						<?php if (isset($password_null)){ ?>
						<div class="line">
							<p style="margin: 10px 0 10px 0; color: red">
								<?php echo $password_null; ?>
							</p>	
						</div>	
						<?php } ?>
		        	<div class="line">
		        		Tên đăng nhập:
		        	</div>
		        	<div class="line">
		        		<input name="username" id="username" maxlength="25" class="input" type="text" style="width: 200px" value="<?php if (isset($username)) echo $username; ?>" /><br />
		        	</div>
		        	<div class="line">
		        		Mật khẩu:
		        	</div>
		        	<div class="line">
		        		<input class="input" maxlength="32" type="password" name="password" id="password" style="width: 200px" value="" /><br />
		        	</div>
		        	<div class="line" style="margin-bottom: 30px;">
		        		<input type="image" src="<?= $this->baseUrl ?>/public/images/frontend/signin_button.jpg" border="0" />
		        	</div>
		        </form>
	        </div>
	    </div>	
	</div>
</div>
<?php echo $this->render('footer.phtml');?> 